package com.znufe.exam.viewmodel.h5.grade;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
public class H5StudentIndividualGradeRequestVM {

    @ApiModelProperty(name = "className" , value = "班级名称")
    private String className;

    @ApiModelProperty(name = "stuName" , value = "学生姓名")
    private String stuName;

    @ApiModelProperty(name = "courseName" , value = "课程名称")
    private String courseName;

    public static H5StudentIndividualGradeRequestVM wipeBlank(H5StudentIndividualGradeRequestVM model) {
        if (model.getClassName() != null) {
            model.setClassName(model.getClassName().trim());
        }
        if (model.getStuName() != null) {
            model.setStuName(model.getStuName().trim());
        }
        if (model.getCourseName() != null) {
            model.setCourseName(model.getCourseName().trim());
        }
        return model;
    }
}
